home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / sysv-rc.postrm < prev    next >
Encoding:
Text File  |  2012-03-26  |  807 b   |  41 lines

  1. #! /bin/sh
  2. #
  3. # sysv-rc postrm
  4. #
  5.  
  6. set -e
  7.  
  8. case "$1" in
  9.     remove) : ;;
  10.     purge)
  11.         if [ -e /usr/share/debconf/confmodule ]; then
  12.         . /usr/share/debconf/confmodule
  13.         db_purge
  14.         fi
  15.         exit 0
  16.         ;;
  17.     *) exit 0 ;;
  18. esac
  19.  
  20. umask 022
  21.  
  22. # If an alternative update-rc.d and invoke-rc.d implementation is
  23. # unpacked before this postrm script is executed, we do not want to
  24. # replace their programs with the symlink.
  25. if [ ! -e /usr/sbin/update-rc.d ] ; then
  26.     ln -sf /usr/share/sysvinit/update-rc.d /usr/sbin/update-rc.d
  27. fi
  28. if [ ! -e /usr/sbin/invoke-rc.d ] ; then
  29.     ln -sf /usr/share/sysvinit/update-rc.d /usr/sbin/invoke-rc.d
  30. fi
  31.  
  32. # Do not remove /etc/init.d/.legacy-bootordering, to allow those
  33. # taking over to know where to continue.
  34.  
  35.  
  36.  
  37. # Remove the recorded update-rc.d
  38. rm -f /var/lib/update-rc.d/*
  39.  
  40. exit 0
  41.